<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>




                    <div class="row">
                        <div class="col-md-12">
                             <div class="box">
                                <div class="box-header with-border">
                                    <h3 class="box-title">店铺 “<?php echo $shop["name"];?>” 清理商品</h3>
                                </div>
                                <div class="box-body">
                                    <?php if($message){?>
                                    <div class="alert alert-success">   <?php echo $message;?></div>
                                    <?php } ?>
                                   
                                    <?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'form-create_notice')); ?>
                                          
                                          
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">清理模式</label>
                                        <div class="col-sm-10">
                                         <select name="cleantype"  id="cleantype" class="form-control">
                                            <option value="1">白名单模式</option>
                                            <option value="2">黑名单模式</option>
                                         </select>
                                        </div>
                                        </div>


                                          <div class="form-group">
                                          <?php  echo '<label for="ruler"'._stringify_attributes(array('class' => 'col-sm-2 control-label')).'>清理规则</label>';?>
                                            <div class="col-sm-10">
                                                <span style="line-height:20px;"><?php echo form_textarea($ruler);?></span>
                                                <div class="row" style="margin:10px 3px;color:#333;" id="helptip">
                                                每行一个关键词，没有匹配关键词的商品将会被删除
                                                </div>
                                            </div>
                                        </div>

                                       

                                       <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <div class="btn-group">
                                                    <?php echo form_hidden('id', $shop["id"]);?>                                              
                                                    <?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => lang('actions_submit'))); ?>
                                                 </div>
                                            </div>
                                        </div>
                                    <?php echo form_close();?>




                                </div>
                            </div>
                         </div>
                    </div>
            
<script>
$(document).ready(function() {
    $('#pushsite').select2();
});


$("#cleantype").change(function(){
    var selected=$(this).children('option:selected').val();
    if(selected=="1")
    {
        $("#helptip").html('每行一个关键词，没有匹配关键词的商品将会被删除');
    }
    else
    {
        $("#helptip").html('每行一个关键词，匹配任意关键词的商品将会被删除');
    }
});

</script>